package com.fzg.controller;


import com.fzg.common.enums.ResponseWrapper;
import com.fzg.service.RecruitmentEnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 企业-招聘表 前端控制器
 * </p>
 *
 * @author fzg
 * @since 2021-12-13
 */
@RestController
@RequestMapping("/recruitment-enterprise")
public class RecruitmentEnterpriseController {

    @Autowired
    private RecruitmentEnterpriseService recruitmentEnterpriseService;

    /**
     * 获取所有企业发布的招聘信息
     * @return ResponseWrapper
     */
    @GetMapping("/getAllRecruitInfo")
    public ResponseWrapper getAllRecruitInfo(){
        return recruitmentEnterpriseService.getAllRecruitInfo();
    }

}
